<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<script type="text/javascript" src="_static/jquery.js"></script>
	<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="_static/programmeerimine.css" />
    <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
    
    <script type="text/javascript">
		$(function() {
		    $("div.exercise:not(.nosubmit)")
		    	.append (
		    		"<div class='admonition user-solution hint' style='padding-right:0.2em'>"
		    		+ "<p class='first admonition-title'>Minu lahendus"
		    		+ "<span class='controls' style='float:right'><a href='#'>Thonny</a></span>"
		    		+ "</p>"
		    		+ "<textarea rows='5' style='width:99%'>def kala(x):\n    return x</textarea>"
		    		+ "<button style='float:right;clear:both;margin-top:0.2em'>Esita</button>"
		    		+ "  <div>"
		    		+ "  <p><b style='color:gray'>Serveri vastus</b></p>"
		    		+ "    <ul>"
		    		+ "    <li>kala(10) peaks tagastama 10 aga tagastab None"
		    		+ "    <li>kala(0) peaks tagastama 0 aga tagastab None"
		    		+ "    </ul>"
		    		+ "  </div>"
		    		+ "</div>"
		    	);
			
			
		    $("div.exercise:not(.done) p.topic-title.first")
		    	.append("<span class='controls' style='float:right'>"
		    		+ "<img src='_static/gray_cm2v.png' alt='Oskan'/>14 &nbsp;"
		    		+ "<img src='_static/gray_star.png' alt='Meeldib'/>12"
		    		//+ "<input type='checkbox' id='cb1'/>"
		    		//+ "<input type='checkbox' id='cb1'/><label for='cb1'>oskan</label>"
		    		//+ "<input type='checkbox' id='cb2'/><label for='cb2'>meeldib</label>"
		    		+ "</span>");
		    		
		    $("div.exercise.done p.topic-title.first")
		    	.append("<span class='controls' style='float:right'>"
		    		+ "<img src='_static/color_cm2v.png' alt='Oskan'/>78 &nbsp;"
		    		+ "<img src='_static/color_star.png' alt='Meeldib'/>4"
		    		//+ "<input type='checkbox' id='cb1' checked='checked'/>"
		    		//+ "<input type='checkbox' id='cb1' checked='checked'/><label for='cb1'>oskan</label>"
		    		//+ "<input type='checkbox' id='cb2'/><label for='cb2'>meeldib</label>"
		    		+ "</span>");
		});
	</script>
	
    <script type="text/javascript">
		$(function() {
		    $(".admonition.hint").addClass("hidden");
		
		    $(".admonition.hint .admonition-title").click(function(e){
		        $(e.target.parentNode).toggleClass("hidden");
		    });
		});
	</script>
	
	
  </head>
  
<body>
<div id="page">
	
	<div id="header">
		<div class="title"><a href="./index.html">Programmeerimise õpik</a></div>
		<div class="subtitle"><a href="http://www.cs.ut.ee">http://www.cs.ut.ee</a></div>
	</div>
	
	<div id="main"> 
		<div id="side_toc">
    		{{ toctree(collapse=False, includehidden=True) }}
  		</div>
		
		<div id="content">	  		
			{% block body %} {% endblock %}
		</div>
	</div>
	
  	<div id="footer">
  		&nbsp;
  	</div>	
</div>  	

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments);},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m);
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-23381817-2', 'ut.ee');
  ga('send', 'pageview');

</script>

</body>
</html>
